<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: nars.storage.Memory.activatedTask</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d8/df4/classnars_1_1storage_1_1Memory_aa0cec63b98350a34c10513f3efeaff86.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
<a class="anchor" id="aa0cec63b98350a34c10513f3efeaff86"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nars.storage.Memory.activatedTask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a>&#160;</td>
          <td class="paramname"><em>budget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a>&#160;</td>
          <td class="paramname"><em>sentence</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d6/d25/classnars_1_1entity_1_1Sentence.html">Sentence</a>&#160;</td>
          <td class="paramname"><em>candidateBelief</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Activated task called in MatchingRules.trySolution and Concept.processGoal. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">budget</td><td>The budget value of the new Task </td></tr>
    <tr><td class="paramname">sentence</td><td>The content of the new Task </td></tr>
    <tr><td class="paramname">candidateBelief</td><td>The belief to be used in future inference, for forward/backward correspondence </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="../../db/d0c/Memory_8java_source.html#l00237">237</a> of file <a class="el" href="../../db/d0c/Memory_8java_source.html">Memory.java</a>.</p>

<p>References <a class="el" href="../../db/d34/interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459.html#acb473be6e5d774c10781bc8e74453459">nars.io.IInferenceRecorder.append()</a>, <a class="el" href="../../d9/de0/Item_8java_source.html#l00082">nars.entity.Item.getBudget()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00625">nars.storage.Memory.getCurrentTask()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00577">nars.storage.Memory.getNewTasks()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00531">nars.storage.Memory.getReasoner()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00111">nars.storage.Memory.getRecorder()</a>, <a class="el" href="../../d6/d10/Task_8java_source.html#l00099">nars.entity.Task.getSentence()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l01032">nars.storage.Memory.ReasonerBatch.getSilenceValue()</a>, <a class="el" href="../../da/d1c/Sentence_8java_source.html#l00189">nars.entity.Sentence.isQuestion()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00464">nars.storage.Memory.report()</a>, <a class="el" href="../../d8/d59/BudgetValue_8java_source.html#l00188">nars.entity.BudgetValue.summary()</a>, and <a class="el" href="../../d6/d10/Task_8java_source.html#l00186">nars.entity.Task.toString()</a>.</p>

<p>Referenced by <a class="el" href="../../d0/db7/LocalRules_8java_source.html#l00118">nars.inference.LocalRules.trySolution()</a>.</p>
<div class="fragment"><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                                                                                               {</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        Task task = <span class="keyword">new</span> Task(sentence, budget, <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a26eda4f00b333b706b4e3d069fdf1508.html#a26eda4f00b333b706b4e3d069fdf1508">getCurrentTask</a>(), sentence, candidateBelief);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1.html#aa4c7e1f5823d0404c0cab49b617968f1">getRecorder</a>().<a class="code" href="../../db/d34/interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459.html#acb473be6e5d774c10781bc8e74453459">append</a>(<span class="stringliteral">&quot;!!! Activated: &quot;</span> + task.toString() + <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;        <span class="keywordflow">if</span> (sentence.isQuestion()) {</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;            <span class="keywordtype">float</span> s = task.getBudget().summary();</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="comment">//            float minSilent = reasoner.getMainWindow().silentW.value() / 100.0f;</span></div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;            <span class="keywordtype">float</span> minSilent = <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a076ad9a0e872386bca3f2d17fa7cb2d4.html#a076ad9a0e872386bca3f2d17fa7cb2d4">getReasoner</a>().<a class="code" href="../../dd/da5/classnars_1_1storage_1_1Memory_1_1ReasonerBatch_a482c1432496bcae846033c7ef917edb7.html#a482c1432496bcae846033c7ef917edb7">getSilenceValue</a>().get() / 100.0f;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;            <span class="keywordflow">if</span> (s &gt; minSilent) {  <span class="comment">// only report significant derived Tasks</span></div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;                <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a26cbb4acec5bb2c23a048d7deba4051d.html#a26cbb4acec5bb2c23a048d7deba4051d">report</a>(task.getSentence(), <span class="keyword">false</span>);</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;            }</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        }</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a8c50bdf4f2750032f24965e12e9fb59c.html#a8c50bdf4f2750032f24965e12e9fb59c">getNewTasks</a>().add(task);</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    }</div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a26eda4f00b333b706b4e3d069fdf1508_html_a26eda4f00b333b706b4e3d069fdf1508"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a26eda4f00b333b706b4e3d069fdf1508.html#a26eda4f00b333b706b4e3d069fdf1508">nars.storage.Memory.getCurrentTask</a></div><div class="ttdeci">Task getCurrentTask()</div><div class="ttdoc">The selected Task. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00625">Memory.java:625</a></div></div>
<div class="ttc" id="interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459_html_acb473be6e5d774c10781bc8e74453459"><div class="ttname"><a href="../../db/d34/interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459.html#acb473be6e5d774c10781bc8e74453459">nars.io.IInferenceRecorder.append</a></div><div class="ttdeci">abstract void append(String s)</div><div class="ttdoc">Add new text to display. </div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a076ad9a0e872386bca3f2d17fa7cb2d4_html_a076ad9a0e872386bca3f2d17fa7cb2d4"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a076ad9a0e872386bca3f2d17fa7cb2d4.html#a076ad9a0e872386bca3f2d17fa7cb2d4">nars.storage.Memory.getReasoner</a></div><div class="ttdeci">ReasonerBatch getReasoner()</div><div class="ttdoc">Backward pointer to the reasoner. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00531">Memory.java:531</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a26cbb4acec5bb2c23a048d7deba4051d_html_a26cbb4acec5bb2c23a048d7deba4051d"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a26cbb4acec5bb2c23a048d7deba4051d.html#a26cbb4acec5bb2c23a048d7deba4051d">nars.storage.Memory.report</a></div><div class="ttdeci">void report(Sentence sentence, boolean input)</div><div class="ttdoc">Display input/output sentence in the output channels. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00464">Memory.java:464</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1ReasonerBatch_a482c1432496bcae846033c7ef917edb7_html_a482c1432496bcae846033c7ef917edb7"><div class="ttname"><a href="../../dd/da5/classnars_1_1storage_1_1Memory_1_1ReasonerBatch_a482c1432496bcae846033c7ef917edb7.html#a482c1432496bcae846033c7ef917edb7">nars.storage.Memory.ReasonerBatch.getSilenceValue</a></div><div class="ttdeci">AtomicInteger getSilenceValue()</div><div class="ttdoc">Report Silence Level. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l01032">Memory.java:1032</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a8c50bdf4f2750032f24965e12e9fb59c_html_a8c50bdf4f2750032f24965e12e9fb59c"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a8c50bdf4f2750032f24965e12e9fb59c.html#a8c50bdf4f2750032f24965e12e9fb59c">nars.storage.Memory.getNewTasks</a></div><div class="ttdeci">List&lt; Task &gt; getNewTasks()</div><div class="ttdoc">List of new tasks accumulated in one cycle, to be processed in the next cycle. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00577">Memory.java:577</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1_html_aa4c7e1f5823d0404c0cab49b617968f1"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1.html#aa4c7e1f5823d0404c0cab49b617968f1">nars.storage.Memory.getRecorder</a></div><div class="ttdeci">IInferenceRecorder getRecorder()</div><div class="ttdoc">Inference record text to be written into a log file. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00111">Memory.java:111</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d8/df4/classnars_1_1storage_1_1Memory_aa0cec63b98350a34c10513f3efeaff86_aa0cec63b98350a34c10513f3efeaff86_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d8/df4/classnars_1_1storage_1_1Memory_aa0cec63b98350a34c10513f3efeaff86_aa0cec63b98350a34c10513f3efeaff86_icgraph.svg" width="100%" height="437"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/d81/namespacenars.html">nars</a></li><li class="navelem"><a class="el" href="../../de/ddc/namespacenars_1_1storage.html">storage</a></li><li class="navelem"><a class="el" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:04:00 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
